package com.cnswhy.cloud.server.core.service.app.impl;


import com.cnswhy.cloud.common.core.mybatis.conditions.Wraps;
import com.cnswhy.cloud.server.core.dao.SlideshowMapper;
import com.cnswhy.cloud.server.core.entity.Slideshow;
import com.cnswhy.cloud.server.core.service.app.SlideshowService;
import com.cnswhy.cloud.common.core.base.service.SuperServiceImpl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 业务实现类
 * 轮播图表
 * </p>
 *
 * @author cnswhy
 * @date 2020-09-30
 */
@Slf4j
@Service

public class SlideshowServiceImpl extends SuperServiceImpl<SlideshowMapper, Slideshow> implements SlideshowService {
    public List<Slideshow> queryByType(Integer type){
        List<Slideshow> list = super.list(Wraps.<Slideshow>lbQ().eq(Slideshow::getType, type));
        return list;
    }
}
